package com.woniuxy.moneyapp.common.exception.code;

public enum FundExceptionCode {

    PARAM_NULL(6001,"参数不能为空"),

    SAVE_INFO_FAIL(6002,"存入信息失败"),

    NO_SCHEMA_CODE(6003,"没有该场景编号"),

    DAO_ERROR(6004,"数据库操作时出错"),

    TRAINEE_NEED_RECHARGE(6005,"学员余额不足失败"),

    PWD_WRONG(6007,"密码错误"),

    REFUND_FAIL(6008,"退款失败"),

    CASH_OUT_ERROR(6009,"转账失败"),

    DATE_ERROR(6010,"终止时间不能大于起始时间"),

    REPEAT_PAY_ERROR(6011,"重复支付错误"),

    RETURN_DATA_NULL(6012,"返回数据为空"),

    VENUE_STATE_CHANGE_ERROE(6013,"场馆状态更新失败"),

    ORDER_NULL(6014,"订单不存在"),

    REFUND_NOT_COMMIT(6015,"订单未支付"),

    CANNOT_BIGGER(6016,"退款金额不能大于订单金额"),

    REFUND_ON_WORKING(6017,"退款处理中"),

    VENUE_NOT_FOUND(6018,"未查到这个场馆"),

    TRADE_FAIL(6019,"余额不足或密码错误"),

    USER_NOT_FOUND(6020,"用户未查到"),

    ALIPAY_CODE_NULL(6021,"用户支付宝账户为空"),

    BALANCE_NOT_ENOUGH(6022,"余额不足"),

    ORDER_IS_PAYING(6023,"订单支付中"),

    REDIS_SAVE_ERROR(6024,"储存进redis失败"),

    COONTRACT_NO_SIGNED(6024,"合同未签"),

    NOT_VENUE_ACC(6025,"未找到该场馆用户"),

    NOT_THIS_ACC(6026,"不是该场馆账户订单"),

    NOT_THIS_STUDENT(6027,"不是该学员的订单"),

    NOT_THIS_VENUE(6028,"不是该场馆的订单"),

    REFUND_HAS_DONE(6029,"订单已退款,不能重复退款"),

    RECHARGE_ACC_FAIL(6030,"账户余额变动失败"),

    STUDENT_NOT_EXISTS(6031,"学员账户不存在"),

    NOT_STU_ORDER(6032,"不是该学生的账号"),

    PAYING_ORDER(6033,"正在支付"),

    PAYING_DONE(6034,"订单已支付"),

    CANNOT_PAY(6034,"订单不能支付"),

    ORDER_NOT_PAY(6035,"订单未支付"),

    RESULT_DATA_NULL(6036,"返回参数为空"),

    CASH_AMOUNT_ERROR(6037,"参数必须大于0"),

    ORDER_HAD_COMMIT(6038,"订单已发起退款申请")

    ;

   private Integer code;

   private String message;
    //构造方法不加public！
   FundExceptionCode(Integer code,String message){
        this.code = code;
        this.message = message;
   }

    public Integer getCode(){
       return this.code;
    }

    public String getMsg(){
       return this.message;
    }
}
